package cn.edu.zju.gis.disasterBE.sever.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

@Data
@TableName("twitter_trend")
@ApiModel("推特趋势表")
public class TwitterTrend implements Entity<Integer>{

    @TableId(value = "tid", type = IdType.AUTO)
    @ApiModelProperty(value = "时间tid")
    private Integer tid;

    @TableField(value = "date")
    @ApiModelProperty(value = "日期")
    private String date;

    @TableField(value = "neutral")
    @ApiModelProperty(value = "平和")
    private Integer neutral;

    @TableField(value = "positive")
    @ApiModelProperty(value = "正向情感")
    private Integer positive;

    @TableField(value = "negative")
    @ApiModelProperty(value = "负向情感")
    private Integer negative;

    @TableField(value = "mixed")
    @ApiModelProperty(value = "复杂情感")
    private Integer mixed;

    @Override
    public Integer id()
    {
        return tid;
    }
}
